package com.ndood.base;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

/**
 * 1.2.6 测试分页查询 POST http://localhost:9001/label/1/5 {a:1}
 */
/**
 * 1.1.25 测试查询全部数据 GET http://localhost:9001/label
 * 1.1.26 测试根据ID查询标签 GET http://localhost:9001/label/1
 * 1.1.27 测试增加 POST http://localhost:9001/label
 * 1.1.28 测试修改 PUT http://localhost:9001/label/1
 * 1.1.29 测试删除 DELETE http://localhost:9001/label/1
 */
/**
 * 1.1.8 创建启动类
 */
@SpringBootApplication
public class BaseApplication {

	public static void main(String[] args) {
		SpringApplication.run(BaseApplication.class);
	}

	/**
	 * 1.1.9 引入IdWorker
	 */
	@Bean
	public IdWorker idWorker(){
		return new IdWorker(1,1);
	}

}
